from urllib import (
    request,
    parse
)
# 获取HTML的数据
def getHTML(url):
    headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) '
                                 'Chrome/51.0.2704.63 Safari/537.36'}
    req = request.Request(url=url, headers=headers)
    res = request.urlopen(req)
    html = res.read().decode('gbk')
    return html
# html = getHTML("http://jib.xywy.com/il_sii/gaishu/1.htm")
# print(html)